/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javateknik.portal.web.controller;

import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author klkhn
 */
@SessionScoped
@ManagedBean(name="greetingManager")
public class GreetingManager {

    String greeting;
    List<String> greetings = new ArrayList<String>();

    public void addGreeting() {
        greetings.add(greeting);
        greeting = "";
    }

    public String getGreeting() {
        return greeting;
    }

    public void setGreeting(String greeting) {
        this.greeting = greeting;
    }

    public List<String> getGreetings() {
        return greetings;
    }

    public void setGreetings(List<String> greetings) {
        this.greetings = greetings;
    }
}
